Greg Ercolano wrote: > manolo gouy wrote: >> When you'll have committed the new Fl_Menu_::insert() function >> I'll add Fl_Sys_Menu_Bar::insert(). > > Great -- I'm working on the doxygen docs now, and once everything > builds on all three platforms, I'll check it in.
BTW, my implementation of insert() is mainly a "swaperoo" with the existing add() code. The code in add() already had the ability to insert, it was just missing a parameter to make use of it. So I changed the name of add() to insert(), added the index parameter, modified a few lines of code to make use of the new parameter, including to set it up so that if index == -1, the behavior is the same as the old add(). Then I made a new add() method with the same parameters as the old which just calls insert() with index=-1. The resulting "diff" ended up being very small. There's a test program in STR#1758 that exercises the insert() method, along with the other methods added. _______________________________________________ fltk-dev mailing list fltk-dev@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-dev